package ooday01;
//汽车类
public class Car {
    //成员变量
    String brand;
    String color;
    double price;

    //无参：
    Car(){
    }
    //有参
    Car(String brand,String color,double price){
        this.brand =brand;
        this.price =price;
        this.color = color;
    }

    void start(){
        System.out.println("牌子"+brand+"颜色"+color+"价格"+price);
    }
    void run(){
        System.out.println("牌子"+brand+"颜色"+color+"价格"+price+"开始跑");
    }
    void stop(){
        System.out.println("牌子"+brand+"颜色"+color+"价格"+price+"停止");


    }
}
